/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ProjetoCompreJa.ClassesBasicas;

import ProjetoCompreJa.ClassesBasicas.EnderecoCJ;
import ProjetoCompreJa.ClassesBasicas.PessoaCJ;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 *
 * @author Marcos
 */
@Entity
@PrimaryKeyJoinColumn(name = "Fun_id", referencedColumnName = "PessoaID")
public class Funcionario extends PessoaCJ {

    private String cargo;
    private double salario;

    /**
     * @return the cod_Funcionario
     *
     * public int getCod_Funcionario() { return cod_Funcionario; }
     *
     * /
     **
     * @param cod_Funcionario the cod_Funcionario to set
     *
     * public void setCod_Funcionario(int cod_Funcionario) {
     * this.cod_Funcionario = cod_Funcionario; }
     *
     *
     * /
     **
     * @return the cargo
     */
    public String getCargo() {
        return cargo;
    }

    /**
     * @param cargo the cargo to set
     */
    public void setCargo(String cargo) {
        this.cargo = cargo;
    }

    /**
     * @return the salario
     */
    public double getSalario() {
        return salario;
    }

    /**
     * @param salario the salario to set
     */
    public void setSalario(double salario) {
        this.salario = salario;
    }

}
